<template>
	<view class="bg-gray">
		<view class="swipecarouselback">
			<image src="https://www.haopengsong.xyz/static/arrleft.png" class="arricon" @click="jump"></image>
			<carousel :res="carouselImage" class="bgshare" height='500' />
		</view>
		<view class="width">
			<view class="linebox">
				<view class="bg-white commonbg">
					<view class="font15 flex-row-between bold">
						课程名称
						<view class="yellow ">¥0</view>
					</view>
					<view class="color6 fontbottom">
						一对一书画课 0元40节课无论是新学书画的小白还是进书画手我都会根据你的练习情况给书画
					</view>
				</view>
				<view class="bg-white boxin">
					<view class="flex-row-between boxitem">
						主讲人
						<view>张三</view>
					</view>
					<view class="flex-row-between boxitem">
						课程时间
						<view>2024-05-25</view>
					</view>
				</view>
				<view class="linebox">
					<view class="bg-white commonbg">
						<view class="font15 flex-row-start bold">
							<view class="line"></view>
							图文说明
						</view>
						<view class="color6 fontbottom">
	一对一书画课 0元40节课无论是新学吉他的小白还是进阶吉他手我都会根据你的练习情况给吉他谱一对一吉他课 0元40节课无论是新学吉他的小白还是进阶吉他手我都会根据你的练习情况给吉他谱
						</view>
						<image src="https://www.haopengsong.xyz/static/movie/shuhuabg.png" mode="widthFix" class="bgimg"></image>
					</view>
				</view>
				<view  class="apply">
				<u-button type="primary" shape='circle' @click="submit">扫码进入</u-button></view>
			</view>
		</view>
		<bottomsubmit title='确认支付' ></bottomsubmit>
	</view>
</template>

<script>
	import tpl_banner from "@/pages/tabbar/roperty/template/tpl_banner"; 
	export default {
		components: {
			carousel: tpl_banner
		},
		data(){
			return {
				carouselImage:[
					{ name:'https://www.haopengsong.xyz/static/movie/detailbg.png'}
				],
				username:'',
				tel:'',
				jtel:'',
			}
		},
		methods:{
			jump(res){
				// 返回上一页
				uni.navigateBack({
				    delta: 1 // 默认值是1，表示返回的页面层数
				});
			},
			submit(){
				uni.showToast({
					title: "内测中，暂不可使用哦~",
					icon: "none",
					duration: 1500,
				});
				setTimeout(function () {
					// 返回上一页
					uni.navigateBack({
					    delta: 1 // 默认值是1，表示返回的页面层数
					});
				},2000)
				
			},
		}
	}
</script>

<style lang="scss" scoped>
 .width{
	 position: relative;
	 top:-40px;
	 padding-bottom: 50px;
 }
 .commonbg{
	 margin: 0;
 }
 .boxin,.linebox,.bgimg{
	 margin-top: 10px;
 }
 .apply{
	 margin-top: 20px;
 }
</style>